getOptions

abstract fun getOptions(): Iterator<out Option>

Gets an iterator over the configuration options defined for this gadget instance.

Gadget options are key-value pairs that allow customization of the gadget's behavior, appearance, or data sources without modifying its core code. For example, a weather gadget might have options for "location" or "units".

Each element returned by the iterator implements the Option interface, providing access to the option's name, value, and potentially its type or other metadata.

The returned iterator might provide a read-only view of the options. If no options are configured, the iterator will be empty (i.e., hasNext() will return false immediately).

Return

A non-null Iterator over the gadget's Options. The iterator will be empty if the gadget has no configured options.

See also

// Ensure Option interface/class is also well-documented